<template>
  <div class="order"  style="background: #F0F0F0; padding-bottom: 300px">
   <div class="mobile-wrap center mobile-wrap-mb">
        
        <header>
        	<span class="return"  @click="()=>{this.$router.go(-1)}">
        		返回
        	</span>
        </header>
        <main>
        	<div class="inform">
        		<h3>账号管理</h3>
        		<div class="inform-list">
        			<ul>
        				<li class="acti">个人信息</li>
        			</ul>
        		</div>
        		<div class="inform-text show">
        			<p>
        				<span>
        					用户名
        				</span>
        				<input type="text" v-model="person.name">
        			</p>
        			<p>
        				<span>
        					电话号
        				</span>
        				<input type="text" v-model="person.phone">
        			</p>
        			<p>
        				<span>
        					个人头像
        				</span>
        				<input type="file" id="filess"  @change="pic()">
        			</p>
        			<h4>
        				<input type="submit" name="" id="" value="确定修改" @click="cli()">
        				<a href="#">遇到问题？</a>
        			</h4>
        		</div>
        	
        		</div>
        </main>

   </div><!--mobile_wrap-->



  
  </div>
</template>

<style lang="less" scoped>
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  outline: none;
}


header{
	width: 100%;
	height: .86rem;
}
header span{
	line-height: .86rem;
	color: #dc5d41;
	margin-left: .2rem;
	font-size: .3rem;
}
main{
	width: 100%;
	display: table;
}

.mobile-wrap-mb{
	margin-bottom: 0;
	background-color: #fff;
}

.inform{
	width: 100%;
	display: table;
}
.inform h3{
	text-align: center;
	font-size: .46rem;
	color: #323233;
	font-weight: normal;
}

.inform-list{
	width: 100%;
	display: table;
}
.inform-list ul{
	width: 100%;
	height: .66rem;
	border-bottom: .05rem solid #d7d7dc;
  margin-top: .45rem;
      display: inline-flex;
}
.inform-list ul li{
	width: 100%;
	height: .66rem;
	text-align: center;
	line-height: .66rem;
	font-size: .3rem;
	position: relative;
	border-bottom: .05rem solid #d7d7dc;
}
.inform-list ul li:after{
	content: '';
	position: absolute;
	right: 0;
	bottom: -.05rem;
	width: .03rem;
	height: .05rem;
	background-color: #fff;
	z-index: 99;
}
.inform-list ul li:nth-last-child:after{
	border: none;
}
.inform-list ul li.acti{
	border-bottom: .05rem solid #f7505c;
	height: .66rem;
	color: #f7505c;
}

.inform-text{
	width: 100%;
	display: table;
	display: none;
}

.inform .show{
	display: table;
}
.inform-text p{
	width: 5.96rem;
	height: .82rem;
	border: .01rem solid #d7d7dc;
	margin: 0 auto;
	margin-top: .45rem;
}
.inform-text p span{
	display: block;
	width: 1.3rem;
	height: 100%;
	float: left;
	line-height: .82rem;
	margin-left: .2rem;
	color: #afaeb3;
	font-size: .26rem;
}
.inform-text p input{
	width: 3rem;
	height: .5rem;
	line-height: .5rem;
	border: none;
	background: none;
	margin-top: .16rem;
	color: #333;
	font-size: .26rem;
}
#filess{
  margin-left: 30px;
}
.inform-text h4{
	text-align: center;
	width: 100%;
	width: 5.96rem;
	margin: 0 auto;
	display: table;
}
.inform-text h4 input{
	width: 5.96rem;
	height: .82rem;
	border: none;
	background-color: #dc5d41;
	color: #fff;
	margin: 0 auto;
	margin-top: 1rem;
	border-radius: .03rem;
	font-size: .28rem;
}
.inform-text h4 a{
	color: #afaeb3;
	font-size: .28rem;
	font-weight: normal;
	text-align: right;
	float: right;
	line-height: .5rem;
	font-size: .24rem;
}
#pic{
  width: 0.6rem;
  
}
</style>

<script type="text/javascript">
	
  
</script>

<script>
export default {
   data() {
    return {
      person:{name:'',phone:'',pic:''}
    }
   },
    mounted() {
    $('.inform-list ul li').click(function(){
		var n=$(this).index();
		$(this).addClass('acti').siblings().removeClass('acti');
		$('.inform-text').fadeOut();
		$('.inform-text').eq(n).fadeIn();
  })
    },
    methods:{
      cli(){
       localStorage.setItem('person',JSON.stringify(this.person))
      },
      pic(){
        var fileName=document.getElementById("filess").value;
        // console.log(fileName);
        this.person.pic=fileName;
      }
    },
    
}
</script>